<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateKdDesignerDemandProgrammeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('kd_designer_demand_programme', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('designer_demand_id')->comment('设计师俱乐部需求ID');
            $table->integer('designer_id')->nullable()->comment('方案设计师ID');
            $table->text('detailed_desc')->nullable()->comment('详细介绍');
            $table->string('attachment')->default('')->comment('需求附件');
            $table->tinyInteger('status')->default(1)->comment('1未审核,2已审核确认');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('kd_designer_demand_programme');
    }
}
